﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using WFL.IoCUnity;

namespace WFL.RBAC
{
    [UnityConfiguration(File = "Unity.config")]
    public interface IUser
    {
        void BindRole(int userId, int roleId);
        void UnbindRole(int userId, int roleId);
        void UnbindRole(int userId);
        IList<Role> GetRoleList(int userId);

        IList<T> GetLimitResourceList<T>(int userId, int resourceId, int operations) where T : new();
    }
}
